package com.springboot.cloud.sysadmin.organization.entity.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * Created by ZengJian on 2021/2/24 0024 上午 9:53
 */
@ApiModel
@Data
public class UserOpenIdForm {

    @ApiModelProperty(value = "账号")
    @NotBlank(message = "账号不能为空")
    @Length(min = 3, max = 20, message = "用户名长度在3到20个字符")
    private String username;

    @ApiModelProperty(value = "公众号openId")
    @NotBlank(message = "公众号openId不能为空")
    private String openId;
}
